<template>
  <el-container class="my-container">
    <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
      <my-menu></my-menu>
    </el-aside>

    <el-container>
      <el-header style="text-align: right; font-size: 12px"></el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import MyMenu from '../components/MyMenu.vue'
export default {
  components: { MyMenu },
  data() {
    const item = {
      date: '2016-05-02',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1518 弄',
    }
    return {
      tableData: Array(20).fill(item),
    }
  },
}
</script>

<style>
.my-container {
  width: 100vw;
  height: 100vh;
}
.el-header {
  background-color: #b3c0d1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  color: #333;
}
</style>
